package model.room;

import common.RoomState;
import common.RoomTypes;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author mxd
 * @date 2024/5/25 0025
 */

public class Room implements Serializable {
        private static List<Room> rooms = new ArrayList<>();
        // 属性定义
        private RoomTypes roomTypes; // 房间类型
        private RoomState roomState; // 房间状态
        private String roomNumber;  // 房间号
        private double price;  // 费用

        // 构造函数
        public Room(){}

    public Room(String roomNumber, double price, RoomState roomState, RoomTypes roomTypes){
            this.roomNumber = roomNumber;
            this.price = price;
            this.roomTypes = roomTypes;
            this.roomState = roomState;
    }

        // 提供房间信息
    public static List<Room> getRoomInformation(){
            return rooms;
    }

    // Getter 和 Setter 方法
    public static List<Room> getRooms() {
        return rooms;
    }

    public static void setRooms(List<Room> rooms) {
        Room.rooms = rooms;
    }

    public RoomTypes getRoomTypes() {
        return roomTypes;
    }

    public void setRoomTypes(RoomTypes roomTypes) {
        this.roomTypes = roomTypes;
    }

    public RoomState getRoomState() {
        return roomState;
    }

    public void setRoomState(RoomState roomState) {
        this.roomState = roomState;
    }

    public String getRoomNumber() {
        return roomNumber;
    }

    public void setRoomNumber(String id) {
        this.roomNumber = roomNumber;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}